/**
 * Copyright @2019 Josin All Rights Reserved.
 * Author: Josin
 * Email : xeapplee@gmail.com
 */

#ifndef FASTXML_XML_DEMO_H
#define FASTXML_XML_DEMO_H

#include <fc_xml.h>

/**
 * @brief NOTICE
 * Simple example for using the macros
 */
CXML_FIELD_DEF(root)
    *info
CXML_FIELD_DEF_END(root);
CXML_FIELD_FUNC_DEF(root);

CXML_FIELD_DEF(info)
    *name, *age, *addr
CXML_FIELD_DEF_END(info);
CXML_FIELD_FUNC_DEF(info);


CXML_ATTR_DEF(name)
    *id, *ppid
CXML_ATTR_DEF_END(name);
CXML_ATTR_FUNC_DEF(name);



#endif /* FASTXML_XML_DEMO_H */
